package com.javapatterns.decorator.print.copy;

public class CopyHeaderDecorator extends CopyOrderDecorator {

	public CopyHeaderDecorator(CopyOrder order) {
		super(order);
	}

	public void print() {
		System.out.println("     ***   I N V O I C E   ***");
		System.out.println(getCustomer() + " Incorporated");
		System.out.println("Date of Sale:" + getSaleDate());
		System.out.println("==============================================");
		super.order.print();
	}

}
